package com.service;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.entity.Order;
import com.mapper.OrderMapper;

@Service
public class OrderService {
	@Autowired
	private OrderMapper orderMapper;
	
	 /**插入订单*/
    public void insertOrder() {
    	this.orderMapper.insertOrder();
    }
    /**查询所有订单*/
    public ArrayList<Order> foundAllOrders(){
    	return this.orderMapper.foundAllOrders();
    }
    /**查询一个订单详情*/
    public Order selectOneOrder(String orderid) {
		return this.orderMapper.selectOneOrder(orderid);  	
    }
	
}
